package cn.lwj.webService.monetto.dao;


import cn.lwj.webService.monetto.entry.Student;
import cn.lwj.webService.monetto.sqlSession.SqlSessionDaoSupport;
import cn.lwj.webService.monetto.sqlSession.SqlSessionFactory;

public class SqlDao extends SqlSessionDaoSupport {
    public SqlDao(SqlSessionFactory sqlSessionFactory) {
        super(sqlSessionFactory);
    }

    public Student getStudentById(String id){
        return this.getSqlSession().selectOne("getStudent",id);
    }
}
